import { createStore } from 'vuex'
import user from './user.js';
import home from './home.js';
import my from './my.js';
import shop from './shop.js';
export default createStore({
    state: {
        routerType: 'push'

    },
    mutations: {
        changeRouterType(state, newRouterType) {
            state.routerType = newRouterType
        }
    },
    getters: {
        routerType: (state) => state.routerType
    },
    actions: {},
    modules: {
        user,
        home,
        my,
        shop
    }
})